class Report < ActiveRecord::Base
  belongs_to :user
  belongs_to :post
  
  validates_presence_of :content, :user_id, :post_id
  
  def owned_by?(user)
    self.user == user
  end
  
  def moderated_by?(user)
    post.moderated_by? user
  end
end
